<?php

namespace App\Observers;

use App\Models\Menu;

class MenuObserver
{
//设置了menuobserver,当menu被创建时将user_id设置为
    public function created(Menu $menu)
    {

    }

    /**
     * Handle the Menu "updated" event.
     *
     * @param \App\Models\Menu $menu
     * @return void
     */
    public function updated(Menu $menu)
    {
        //
    }

    /**
     * Handle the Menu "deleted" event.
     *
     * @param \App\Models\Menu $menu
     * @return void
     */
    public function deleted(Menu $menu)
    {
        //
    }

    /**
     * Handle the Menu "restored" event.
     *
     * @param \App\Models\Menu $menu
     * @return void
     */
    public function restored(Menu $menu)
    {
        //
    }

    /**
     * Handle the Menu "force deleted" event.
     *
     * @param \App\Models\Menu $menu
     * @return void
     */
    public function forceDeleted(Menu $menu)
    {
        //
    }
}
